import java.util.Scanner;

/**
 * Created with IDEA
 * author:ju bai
 * Date:2021/4/16
 * Time:15:11
 **/
public class Main1 {
    /**
     * 每日一题-计算糖果
     *
     * @param args
     */
    public static void main1(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int n1 = scanner.nextInt();
            int n2 = scanner.nextInt();
            int n3 = scanner.nextInt();
            int n4 = scanner.nextInt();
            double A = (n1 + n3) / 2d;
            double B = (n2 + n4) / 2d;
            double C = (n4 - n2) / 2d;

            if (((n1 + n3) % 2) != 0 || ((n2 + n4) % 2) != 0 || ((n4 - n2) % 2) != 0 || (n1 + n2) != (n3 - n4)) {
                System.out.println("No");
            } else {
                System.out.println((int) A + " " + (int) B + " " + (int) C);
            }
        }
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int n1 = scanner.nextInt();
            int n2 = scanner.nextInt();
            int n3 = scanner.nextInt();
            int n4 = scanner.nextInt();
            int A = (n1 + n3) / 2;
            int B1 = (n2 + n4) / 2;
            int B2 = (n3 - n1) / 2;
            int C = (n4 - n2) / 2;

            if (B1 != B2) {
                System.out.println("No");
            } else {
                System.out.println(A + " " + B1 + " " + C);
            }
        }

    }
}
